<template>
  <div>
    <blog-row v-for="(item, index) of blogList"
              :title="item.title"
              :id="item.id"
              :see-times="item.see_time"
              :des="item.intro"
              :time="item.update_time || item.create_time"
              :key="index"></blog-row>
  </div>
</template>

<script>
import { blogList } from '@/api/blog'
export default {
  name: 'main-box',
  data () {
    return {
      blogList: []
    }
  },
  methods: {
    async getBlogList () {
      this.blogList = await blogList({
        pageNow: 1,
        pageSize: 1000,
        keyWord: null
      })
    }
  },
  mounted () {
    this.getBlogList()
  }
}
</script>

<style scoped lang="stylus">
</style>
